let btn = document.getElementById("btn");
let form1 = document.getElementById("form1");

function check(){
    var name = form1.name.value;
    var password = form1.password.value;
    if((name == "")||(name == null)){
        alert("请输入你的昵称");
        return false;
    }else if((password)==""||(password==null)){
        alert("请输入密码");
        return false;
    }else if(password != "xihuan"){
        alert("你再输不对，本宝宝就生气了。╭(╯^╰)╮哼");
        return false;
    }else if(name != "沐橙"){
        alert("你的名字都能输错?哼╭(╯^╰)╮");
        return false;
    }else
        return true;
}